package cn.gson.springboot.model.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.springboot.model.pojos.MedicalCardPx;
import cn.gson.springboot.model.pojos.RegisteredPx;

public interface RegisteredDAO extends CrudRepository<RegisteredPx, Integer>{
	
	//根据门诊号查询实体挂号对象
	@Query("select r from  RegisteredPx r where r.outpatientId=?1")
	public RegisteredPx idreg(Integer outpatientId);
	
	
}
